import javax.swing.filechooser.FileFilter;
import java.io.*;

class Ext extends FileFilter{
      private String extension,description;
      public Ext(String ext,String des){
        extension=ext;
	description=des;
      }

      public boolean accept(File file){
        return (file.isDirectory()||file.getName().toLowerCase().endsWith(extension));
      }

      public String getDescription(){
        return description;
      }
    }